Python Network Programming Cookbook by 2014
Author: 2014 , Date: August 20, 2017
, Views: 165
If you set up a local FTP server and run the following script, this script will log in to the FTP server and then will upload a file. If a filename argument is not supplied from command line by default, it will upload the readme.txt file.
$ python 5_2_upload_file_to_ftp_server.py Enter your FTP password: Connecting to FTP server: localhost Login to FTP server: user=faruq Uploaded file: readme.txt $ cat /home/faruq/readme.txt This file describes what to do with the .bz2 files you see elsewhere on this site (ftp.kernel.org).
Copyright Disclaimer:
This site does not store any files on its server. We only index and link
to content provided by other sites. Please contact the content providers
to delete copyright contents if any and email us, we'll remove relevant
links or contents immediately.